<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/designM/state.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_7815f4a69fa470e020068bb120d080ef.html">designM</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">state.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../da/d3b/state_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &quot;<a class="code" href="../../db/d94/mediator_8hpp.html">designM/mediator.hpp</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d4/da4/namespaceprivate____.html">private__</a></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>{</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>    <span class="comment">// 这是状态变化事件类型定义</span></div>
<div class="foldopen" id="foldopen00020" data-start="{" data-end="};">
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">   20</a></span>    <span class="keyword">enum class</span> <a class="code hl_enumeration" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">emEvent</a></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    {</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>        <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa93f060bb1ace3f90ec826cd4b8b8728f">EVT_ENT</a>,    <span class="comment">// 进入状态触发事件</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>        <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caabe504d9acd8be4d4b4a3ebf094061feb">EVT_LEAVE</a>,      <span class="comment">// 离开状态触发事件</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>        <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa41dee3ee805865f3dd23fa8f91ac9b97">EVT_READY</a>,      <span class="comment">// 模块就绪事件</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>        <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa5edfd18e04add63c82efae8682c456a8">EVT_END</a>         <span class="comment">// 运行到结束节点的时间</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    };</div>
</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    <span class="comment">// 状态节点定义，模板参数是状态标记类型</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>    <span class="comment">// 运行自定义自己需要的类型，比如分析网络协议可以使用uint8_t, 比如定义路灯状态可以使用自己的枚举</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> STATE_TYPE &gt;</div>
<div class="foldopen" id="foldopen00030" data-start="{" data-end="};">
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="../../d4/dd7/structprivate_____1_1st_stat.html">   30</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../d4/dd7/structprivate_____1_1st_stat.html">stStat</a></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>    {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../d4/dd7/structprivate_____1_1st_stat.html#a6bdfa3272699b41d2620622784c4cf4e">   32</a></span>        STATE_TYPE   <a class="code hl_variable" href="../../d4/dd7/structprivate_____1_1st_stat.html#a6bdfa3272699b41d2620622784c4cf4e">m_state</a>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../d4/dd7/structprivate_____1_1st_stat.html#a5818372664f42dd7f5975763fdc516ed">   33</a></span>        <a class="code hl_function" href="../../d4/dd7/structprivate_____1_1st_stat.html#a5818372664f42dd7f5975763fdc516ed">stStat</a>( <span class="keyword">const</span> STATE_TYPE&amp; s ):<a class="code hl_variable" href="../../d4/dd7/structprivate_____1_1st_stat.html#a6bdfa3272699b41d2620622784c4cf4e">m_state</a>( s ){}</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    };</div>
</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>    <span class="comment">// 状态转换关系节点定义</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> STATE_TYPE , <span class="keyword">typename</span> CONDITON_DATA_TYPE &gt;</div>
<div class="foldopen" id="foldopen00037" data-start="{" data-end="};">
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../de/d17/structprivate_____1_1st_arc.html">   37</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../de/d17/structprivate_____1_1st_arc.html">stArc</a></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../de/d17/structprivate_____1_1st_arc.html#a8122100b8e97f59a6f24cb9aa9ae5a5f">   39</a></span>        STATE_TYPE  <a class="code hl_variable" href="../../de/d17/structprivate_____1_1st_arc.html#a8122100b8e97f59a6f24cb9aa9ae5a5f">m_from</a>;      <span class="comment">// 来源状态</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="../../de/d17/structprivate_____1_1st_arc.html#abb716ee8d3f18200e1558ea6aee6689d">   40</a></span>        STATE_TYPE  <a class="code hl_variable" href="../../de/d17/structprivate_____1_1st_arc.html#abb716ee8d3f18200e1558ea6aee6689d">m_to</a>;        <span class="comment">// 目标状态</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>        <span class="comment">// 转换条件处理函数，如果转换条件满足则返回true</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../de/d17/structprivate_____1_1st_arc.html#ab6799d748f4f334954cad2b8f7816daf">   42</a></span>        std::function&lt; bool ( <span class="keyword">const</span> CONDITON_DATA_TYPE&amp; ) &gt;   <a class="code hl_variable" href="../../de/d17/structprivate_____1_1st_arc.html#ab6799d748f4f334954cad2b8f7816daf">m_condition</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="foldopen" id="foldopen00044" data-start="{" data-end="}">
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="../../de/d17/structprivate_____1_1st_arc.html#aa49d75774f05060f9fc6a25e1b4d028c">   44</a></span>        <a class="code hl_function" href="../../de/d17/structprivate_____1_1st_arc.html#aa49d75774f05060f9fc6a25e1b4d028c">stArc</a>( <span class="keyword">const</span> STATE_TYPE&amp; from , <span class="keyword">const</span> STATE_TYPE&amp; to ,std::function&lt; <span class="keywordtype">bool</span> ( <span class="keyword">const</span> CONDITON_DATA_TYPE&amp; ) &gt; fun ):</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>            <a class="code hl_variable" href="../../de/d17/structprivate_____1_1st_arc.html#a8122100b8e97f59a6f24cb9aa9ae5a5f">m_from</a>( from ),</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>            <a class="code hl_variable" href="../../de/d17/structprivate_____1_1st_arc.html#abb716ee8d3f18200e1558ea6aee6689d">m_to</a>( to ),</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>            <a class="code hl_variable" href="../../de/d17/structprivate_____1_1st_arc.html#ab6799d748f4f334954cad2b8f7816daf">m_condition</a>( fun ) {}</div>
</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    };</div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>}</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a>{</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="keyword">namespace </span>dm{</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="keyword">template</span>&lt; <span class="keyword">typename</span> STATE_TYPE , <span class="keyword">typename</span> CONDITION_DATA_TYPE &gt;</div>
<div class="foldopen" id="foldopen00054" data-start="{" data-end="};">
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html">   54</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>{</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span>    <span class="keyword">static_assert</span>( std::is_arithmetic&lt;CONDITION_DATA_TYPE&gt;::value || ( std::is_class&lt;CONDITION_DATA_TYPE&gt;::value &amp;&amp; std::is_default_constructible&lt;CONDITION_DATA_TYPE&gt;::value ) , <span class="stringliteral">&quot;&quot;</span> );</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a098688a7a68b6ba775eb4f471caafe34">   59</a></span>    <span class="keyword">using </span><a class="code hl_enumeration" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">evtType_t</a> = <a class="code hl_enumeration" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">private__::emEvent</a>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">   61</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a> = <span class="keyword">typename</span> std::remove_pointer&lt; typename std::decay&lt; STATE_TYPE &gt;::type &gt;::type;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    <span class="comment">// 针对状态数据进行别名处理</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a53a848fe5dcb8af59a397b4a34b7e99d">   63</a></span>    <span class="keyword">using </span><a class="code hl_struct" href="../../d4/dd7/structprivate_____1_1st_stat.html">state_t</a> = <a class="code hl_struct" href="../../d4/dd7/structprivate_____1_1st_stat.html">private__::stStat&lt; stateData_t &gt;</a>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#add5a65866c95051a8b64f22db64f06af">   64</a></span>    <span class="keyword">using </span><a class="code hl_struct" href="../../de/d17/structprivate_____1_1st_arc.html">arc_t</a> = <a class="code hl_struct" href="../../de/d17/structprivate_____1_1st_arc.html">private__::stArc&lt; stateData_t , CONDITION_DATA_TYPE &gt;</a>;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    <span class="comment">// 用map保存节点的转换关系，stateData_t 是源节点，作为检索的key</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    <span class="comment">// std::vector&lt; stateData_t &gt;，使用vector保存目标节点，因为一个源节点可能有多个目标节点状态</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a720001d3fa7ae1037928418f53b87b4c">   67</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a720001d3fa7ae1037928418f53b87b4c">arcData_t</a> = std::map&lt; stateData_t , std::vector&lt; arc_t &gt; &gt;;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    <span class="comment">// 使用中介者模式传递消息，参与者分成消息的生产者和消费者两个。生产者发出状态变化的四种消息</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>    <span class="comment">// 接收者进行响应的处理并对外调用回调函数进行具体事务的处理</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>    <span class="keyword">class </span><a class="code hl_class" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html">colleague</a>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ae8804af5c29d6043b4e4dac2ed0f6aea">   72</a></span>    <span class="keyword">using </span><a class="code hl_class" href="../../d1/dcc/classwheels_1_1dm_1_1mediator.html">mediator_t</a> = <a class="code hl_class" href="../../d1/dcc/classwheels_1_1dm_1_1mediator.html">wheels::dm::mediator&lt; colleague , stateData_t , private__::emEvent , CONDITION_DATA_TYPE&gt;</a>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    <span class="comment">// 定于消息接口</span></div>
<div class="foldopen" id="foldopen00075" data-start="{" data-end="};">
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html">   75</a></span>    <span class="keyword">class </span><a class="code hl_class" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html">colleague</a> : <span class="keyword">public</span> <a class="code hl_struct" href="../../da/d74/structwheels_1_1dm_1_1colleague_itfc.html">colleagueItfc</a>&lt; mediator_t , stateData_t , private__::emEvent , CONDITION_DATA_TYPE &gt;{</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#a9da54ee8661803125aa7ed4cbf4914ba">   77</a></span>        std::function&lt; void ( <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a> , <a class="code hl_enumeration" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">private__::emEvent</a> , CONDITION_DATA_TYPE ) &gt;  <a class="code hl_variable" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#a9da54ee8661803125aa7ed4cbf4914ba">m_cb__</a>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    public :</div>
<div class="foldopen" id="foldopen00079" data-start="{" data-end="}">
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#adecab9e62f9414f7c9a510688b9ddf4c">   79</a></span>        <a class="code hl_function" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#adecab9e62f9414f7c9a510688b9ddf4c">colleague</a>( std::shared_ptr&lt;mediator_t&gt; m ):</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>            <a class="code hl_struct" href="../../da/d74/structwheels_1_1dm_1_1colleague_itfc.html">colleagueItfc</a>&lt; <a class="code hl_typedef" href="../../da/d74/structwheels_1_1dm_1_1colleague_itfc.html#a8d96fd02ad0f7ecd434b310e344a17fb">mediator_t</a> , <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a> , <a class="code hl_namespace" href="../../d4/da4/namespaceprivate____.html">private__</a>::emEvent , CONDITION_DATA_TYPE &gt;(m){}</div>
</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#ade2168a0119c722761ecf8a0661320f3">   81</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#ade2168a0119c722761ecf8a0661320f3">~colleague</a>(){}</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>        <span class="comment">// 实现消息接收接口。消息传递使用了std::tuple，这里需要根据具体应用将tuple内容解出来</span></div>
<div class="foldopen" id="foldopen00087" data-start="{" data-end="}">
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#ac154064bf9093aeb267a4a82b7384a36">   87</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#ac154064bf9093aeb267a4a82b7384a36">recv</a>( <span class="keyword">const</span> std::tuple&lt; stateData_t , private__::emEvent , CONDITION_DATA_TYPE &gt;&amp; tpl ) <span class="keyword">final</span>{</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>            <span class="keywordflow">if</span>( <a class="code hl_variable" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#a9da54ee8661803125aa7ed4cbf4914ba">m_cb__</a> ){</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>                <span class="comment">// 调用实际的处理函数</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>                <a class="code hl_variable" href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#a9da54ee8661803125aa7ed4cbf4914ba">m_cb__</a>( std::get&lt;0&gt;( tpl ) , std::get&lt;1&gt;( tpl ) , std::get&lt;2&gt;( tpl ) );</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span>            }</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>        }</div>
</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>    };</div>
</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>    <span class="comment">// 状态节点表类型</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ad2611d2f9d79b3f5d562cfd56b36ca47">   95</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ad2611d2f9d79b3f5d562cfd56b36ca47">stateTbl_t</a> = std::map&lt; stateData_t , private__::stStat&lt; stateData_t &gt; &gt;;</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">   97</a></span>    <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ad2611d2f9d79b3f5d562cfd56b36ca47">stateTbl_t</a>                          <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">m_stats__</a>;           <span class="comment">// 状态节点表</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">   98</a></span>    <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a720001d3fa7ae1037928418f53b87b4c">arcData_t</a>                           <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>;            <span class="comment">// 状态连接弧表</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">  100</a></span>    <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>                         <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a>;         <span class="comment">// 当前状态</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa81c8c94b8adde0f60b8b0969ab2a2b">  101</a></span>    <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>                         <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa81c8c94b8adde0f60b8b0969ab2a2b">m_start__</a>;           <span class="comment">// 初始状态</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ac75ba59a88b2f4ee8c9273f980ce152d">  102</a></span>    <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>                         <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ac75ba59a88b2f4ee8c9273f980ce152d">m_end__</a>;             <span class="comment">// 结束状态</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">  103</a></span>    std::atomic&lt;bool&gt;                   <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a>;      <span class="comment">// 状态机运行标志</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span> </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">  105</a></span>    std::shared_ptr&lt; mediator_t &gt;       <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a>;            <span class="comment">// 终结者模式的消息处理器</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    <span class="comment">// 将中介者模式分成生产者和消费者两个实例，生产者处理状态转换并发送事件。消费者处理事件</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>    <span class="comment">// 通过回调函数将消息发出给外部</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">  108</a></span>    std::shared_ptr&lt; colleague &gt;        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a>;       <span class="comment">// 事件数据的生产者</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">  109</a></span>    std::shared_ptr&lt; colleague &gt;        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a>;       <span class="comment">// 事件数据的消费</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    <span class="comment">// 状态离开的时候通知的操作</span></div>
<div class="foldopen" id="foldopen00112" data-start="{" data-end="}">
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a487a1e3203122cdf758b5199fa9fb552">  112</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a487a1e3203122cdf758b5199fa9fb552">call_leave__</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> , <span class="keyword">const</span>  CONDITION_DATA_TYPE&amp; data ){</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a>-&gt;sendTo( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a> , <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> , <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caabe504d9acd8be4d4b4a3ebf094061feb">private__::emEvent::EVT_LEAVE</a> , data );</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    }</div>
</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    <span class="comment">// 通知进入状态的操作</span></div>
<div class="foldopen" id="foldopen00116" data-start="{" data-end="}">
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ab189aeb6559842e7ba25e27b93bb05b8">  116</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ab189aeb6559842e7ba25e27b93bb05b8">call_ent__</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> , <span class="keyword">const</span> CONDITION_DATA_TYPE&amp; data ){</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a>-&gt;sendTo( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a> , <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> , <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa93f060bb1ace3f90ec826cd4b8b8728f">private__::emEvent::EVT_ENT</a> , data );</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    }</div>
</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00120" data-start="{" data-end="}">
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a4af1eb0f78d23a0c0523caaacf1a5ba9">  120</a></span>    <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a4af1eb0f78d23a0c0523caaacf1a5ba9">state</a>():<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a>( false ){</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>        <span class="comment">// 准备中介者模式进行中间消息传递操作。调用start的时候启动终结者模式</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a> = std::make_shared&lt;mediator_t&gt;();</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a> = std::make_shared&lt;colleague&gt;( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a> );</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a> = std::make_shared&lt;colleague&gt;( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a> );</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span> </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a>-&gt;add( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a> );</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a>-&gt;add( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a> );</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    }</div>
</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span> </div>
<div class="foldopen" id="foldopen00131" data-start="{" data-end="}">
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a810b97a9dbd577d1db53c927bc8618ad">  131</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a810b97a9dbd577d1db53c927bc8618ad">~state</a>(){</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>        <span class="comment">// 结束中介者模式</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>        <span class="keywordflow">if</span>( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a> ){</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a>-&gt;run( <span class="keyword">false</span> );</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>        }</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    }</div>
</div>
<div class="foldopen" id="foldopen00141" data-start="{" data-end="}">
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a47259a531c674b1a293567b628726aa9">  141</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a47259a531c674b1a293567b628726aa9">on</a>( std::function&lt; <span class="keywordtype">void</span> (<a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a> , <a class="code hl_enumeration" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">private__::emEvent</a> , CONDITION_DATA_TYPE) &gt; fun ){</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a>-&gt;m_cb__ = fun;</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    }</div>
</div>
<div class="foldopen" id="foldopen00148" data-start="{" data-end="}">
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a95b728cea858087f800a2c288ec284df">  148</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a95b728cea858087f800a2c288ec284df">setStart</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; data ){</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa81c8c94b8adde0f60b8b0969ab2a2b">m_start__</a> = data;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>        <span class="keywordflow">if</span>( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">false</span> ){</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> = data;</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>        }</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>    }</div>
</div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a0968dd350bb56eb0c0afa316b79c5f57">  158</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a0968dd350bb56eb0c0afa316b79c5f57">setEnd</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; data ){</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ac75ba59a88b2f4ee8c9273f980ce152d">m_end__</a> = data;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>        <span class="keywordflow">if</span>( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">false</span> ){</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> = data;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>        }</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    }</div>
</div>
<div class="foldopen" id="foldopen00168" data-start="{" data-end="}">
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#af5e4ec9a4c82dc7637ca19c150107106">  168</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#af5e4ec9a4c82dc7637ca19c150107106">start</a>( <span class="keywordtype">bool</span> sw ){</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>        <span class="keywordflow">if</span>( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == sw ){ <span class="keywordflow">return</span>; }</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span> </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> = sw;</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>        <span class="keywordflow">if</span>( sw ){</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>            <span class="comment">// 启动中介者模式后台</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a>-&gt;run( <span class="keyword">true</span> );</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa81c8c94b8adde0f60b8b0969ab2a2b">m_start__</a>;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>            <span class="comment">// 发送就绪通知</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a>-&gt;sendTo( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a> , <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa81c8c94b8adde0f60b8b0969ab2a2b">m_start__</a>,  <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa41dee3ee805865f3dd23fa8f91ac9b97">private__::emEvent::EVT_READY</a> , std::is_arithmetic&lt;CONDITION_DATA_TYPE&gt;::value?CONDITION_DATA_TYPE():(CONDITION_DATA_TYPE)0.0 );</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span>        }<span class="keywordflow">else</span>{ <span class="comment">// 结束运行</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">pt_mdt__</a>-&gt;run( <span class="keyword">false</span> );</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>        }</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span>    }</div>
</div>
<div class="foldopen" id="foldopen00186" data-start="{" data-end="}">
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a21e9d3fc3ea7ceb446fe8ece5f80db69">  186</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a21e9d3fc3ea7ceb446fe8ece5f80db69">execute</a>(){</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">false</span> ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>        <span class="keyword">auto</span> it = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.find( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> );</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>        <span class="keywordflow">if</span>( it == <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.end() ){ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>        <span class="keywordflow">if</span>( it-&gt;m_second.size() == 0 ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>            </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>        <span class="keyword">auto</span> item = it-&gt;m_second[ 0 ];</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>        <span class="comment">// 这个函数是没有参数条件的转换，主要针对自动转换的情况</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>        <span class="comment">// 先调用离开通知</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>        <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a487a1e3203122cdf758b5199fa9fb552">call_leave__</a>( item.m_from, std::is_arithmetic&lt;CONDITION_DATA_TYPE&gt;::value ? CONDITION_DATA_TYPE() : (CONDITION_DATA_TYPE)0.0 );</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> = item.m_to;</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span>                <span class="comment">// 再调用进入通知</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span>        <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ab189aeb6559842e7ba25e27b93bb05b8">call_ent__</a>( item.m_to , std::is_arithmetic&lt;CONDITION_DATA_TYPE&gt;::value ? CONDITION_DATA_TYPE() : (CONDITION_DATA_TYPE)0.0 );</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>    }</div>
</div>
<div class="foldopen" id="foldopen00208" data-start="{" data-end="}">
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a8118e252c40019035f030044e03dc0cd">  208</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a8118e252c40019035f030044e03dc0cd">execute</a>( <span class="keyword">const</span> CONDITION_DATA_TYPE&amp; data ){</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">false</span> ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>        <span class="comment">// 查找满足其实节点条件的弧表</span></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>        <span class="keyword">auto</span> it = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.find( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> );</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>        <span class="keywordflow">if</span>( it == <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.end() ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>        </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>        <span class="comment">// 遍历所有的弧找到第一个满足条件的执行转换操作。这里需要特别注意的是在一次转换操作中必须保证</span></div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>        <span class="comment">// 只能有一条满足转换条件的路径，否则第二条路径将永远不会访问到，并且这样不能满足明确转换目标。</span></div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>        <span class="keywordflow">for</span>( <span class="keyword">auto</span> item : it-&gt;second ){</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>            <span class="keywordflow">if</span>( !item.m_condition( data ) ){ <span class="keywordflow">continue</span>; }</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>            <span class="comment">// 通知离开起始节点和到达目标节点</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>            <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a487a1e3203122cdf758b5199fa9fb552">call_leave__</a>( item.m_from , data );</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>            <span class="comment">// 切换当前状态</span></div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">m_current__</a> = item.m_to;</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>            <span class="comment">// 通知到达目标节点</span></div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span>            <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ab189aeb6559842e7ba25e27b93bb05b8">call_ent__</a>( item.m_to , data );</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span>            <span class="comment">// 执行结束通知</span></div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>            <span class="keywordflow">if</span>( item.m_to == <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ac75ba59a88b2f4ee8c9273f980ce152d">m_end__</a> ){</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span>                <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">pt_producer__</a>-&gt;sendTo( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">pt_consumer__</a> , <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#ac75ba59a88b2f4ee8c9273f980ce152d">m_end__</a>,  <a class="code hl_enumvalue" href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa5edfd18e04add63c82efae8682c456a8">private__::emEvent::EVT_END</a> , std::is_arithmetic&lt;CONDITION_DATA_TYPE&gt;::value?CONDITION_DATA_TYPE():(CONDITION_DATA_TYPE)0.0 );</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>            }</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>                    </div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span>            <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>        }</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>            </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>    }</div>
</div>
<div class="foldopen" id="foldopen00239" data-start="{" data-end="}">
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a0b96900875a4246a74c44982a759f976">  239</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a0b96900875a4246a74c44982a759f976">addState</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> ){</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">true</span> ) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>        <a class="code hl_struct" href="../../d4/dd7/structprivate_____1_1st_stat.html">private__::stStat&lt;stateData_t&gt;</a> s( <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> );</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>        <span class="keyword">auto</span> rst = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">m_stats__</a>.insert( std::make_pair(<a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> , s ));</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>        <span class="keywordflow">return</span> rst.second;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>    }</div>
</div>
<div class="foldopen" id="foldopen00249" data-start="{" data-end="}">
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a34ee5afb6adee119826bd693d01634b6">  249</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a34ee5afb6adee119826bd693d01634b6">removeState</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> ){</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">true</span> ) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>        <span class="keyword">auto</span> it = std::find( <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">m_stats__</a>.begin() , <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">m_stats__</a>.end() , <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> );</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>        <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">m_stats__</a>.erase( it );</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>        <span class="comment">// 清理状态起始ARC</span></div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span>        <span class="keyword">auto</span> it1 = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.find( <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> );</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span>        <span class="keywordflow">if</span>( it1.m_arcs__.end() ){</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.erase( it1 );</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span>        }</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span> </div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span>        <span class="comment">// 请里状态到达的ARC</span></div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno">  261</span>        <span class="keywordflow">for</span>( <span class="keyword">auto</span> it2 = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.begin(); it2 != <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.end(); it2 ++ ){</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span>            <span class="keywordflow">for</span>( <span class="keyword">auto</span> it3 = it2-&gt;second.begin(); it3 != it2-&gt;second.end(); it3 ++ ){</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>                <span class="keywordflow">if</span>( it3-&gt;m_to == <a class="code hl_class" href="../../d2/d44/classwheels_1_1dm_1_1state.html">state</a> ){</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span>                    it2-&gt;second.erase( it3 );</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>                }</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>            }</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>        }</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>    }</div>
</div>
<div class="foldopen" id="foldopen00275" data-start="{" data-end="}">
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#af53bb35c5631022dbf7c7b618b480d52">  275</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#af53bb35c5631022dbf7c7b618b480d52">addArc</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; from , <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; to , std::function&lt; <span class="keywordtype">bool</span> ( <span class="keyword">const</span> CONDITION_DATA_TYPE&amp; ) &gt; cnd ){</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">true</span> ) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno">  277</span>        <span class="keyword">auto</span> it = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.find( from );</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span>        </div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span>        <span class="keywordflow">if</span>( it != <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.end() ){</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno">  280</span>            <a class="code hl_struct" href="../../de/d17/structprivate_____1_1st_arc.html">private__::stArc&lt;STATE_TYPE,CONDITION_DATA_TYPE&gt;</a> item( from , to , cnd );</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>            it-&gt;second.push_back( item );</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>        }<span class="keywordflow">else</span>{</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>            <a class="code hl_struct" href="../../de/d17/structprivate_____1_1st_arc.html">private__::stArc&lt;STATE_TYPE,CONDITION_DATA_TYPE&gt;</a> item( from , to , cnd );</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>            std::vector&lt; private__::stArc&lt;STATE_TYPE,CONDITION_DATA_TYPE&gt; &gt;  set({item});</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno">  285</span>            </div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>            <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.insert( std::make_pair( from , set ));</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>        }</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>    }</div>
</div>
<div class="foldopen" id="foldopen00294" data-start="{" data-end="}">
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"><a class="line" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1be75ee1830da5d8ab1edc88aaa63789">  294</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1be75ee1830da5d8ab1edc88aaa63789">removeArc</a>( <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; from , <span class="keyword">const</span> <a class="code hl_typedef" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">stateData_t</a>&amp; to ){</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span>        <span class="keywordflow">if</span>(<a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">m_is_running__</a> == <span class="keyword">true</span> ) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span>        <span class="keyword">auto</span> it = <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.find( from );</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span>        <span class="keywordflow">if</span>( it != <a class="code hl_variable" href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">m_arcs__</a>.end() ){</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno">  298</span>            <span class="keywordflow">for</span>( <span class="keyword">auto</span> it1 = it-&gt;second.begin(); it != it-&gt;end(); it ++ ){</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno">  299</span>                <span class="keywordflow">if</span>( it1-&gt;m_to == to ){</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span>                    it-&gt;second.erase( it1 );</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span>                }</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>            }</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>        }</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>    }</div>
</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span>};</div>
</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span>}}</div>
<div class="ttc" id="aclasswheels_1_1dm_1_1mediator_html"><div class="ttname"><a href="../../d1/dcc/classwheels_1_1dm_1_1mediator.html">wheels::dm::mediator</a></div><div class="ttdef"><b>定义</b> <a href="../../db/d94/mediator_8hpp_source.html#l00107">mediator.hpp:108</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_1_1colleague_html"><div class="ttname"><a href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html">wheels::dm::state::colleague</a></div><div class="ttdef"><b>定义</b> <a href="#l00075">state.hpp:75</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_1_1colleague_html_a9da54ee8661803125aa7ed4cbf4914ba"><div class="ttname"><a href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#a9da54ee8661803125aa7ed4cbf4914ba">wheels::dm::state::colleague::m_cb__</a></div><div class="ttdeci">std::function&lt; void(stateData_t, private__::emEvent, CONDITION_DATA_TYPE) &gt; m_cb__</div><div class="ttdef"><b>定义</b> <a href="#l00077">state.hpp:77</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_1_1colleague_html_ac154064bf9093aeb267a4a82b7384a36"><div class="ttname"><a href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#ac154064bf9093aeb267a4a82b7384a36">wheels::dm::state::colleague::recv</a></div><div class="ttdeci">virtual void recv(const std::tuple&lt; stateData_t, private__::emEvent, CONDITION_DATA_TYPE &gt; &amp;tpl) final</div><div class="ttdoc">重载recv函数，并在其中针对tuple解包，调用回调函数通知状态变化</div><div class="ttdef"><b>定义</b> <a href="#l00087">state.hpp:87</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_1_1colleague_html_ade2168a0119c722761ecf8a0661320f3"><div class="ttname"><a href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#ade2168a0119c722761ecf8a0661320f3">wheels::dm::state::colleague::~colleague</a></div><div class="ttdeci">virtual ~colleague()</div><div class="ttdef"><b>定义</b> <a href="#l00081">state.hpp:81</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_1_1colleague_html_adecab9e62f9414f7c9a510688b9ddf4c"><div class="ttname"><a href="../../da/da0/classwheels_1_1dm_1_1state_1_1colleague.html#adecab9e62f9414f7c9a510688b9ddf4c">wheels::dm::state::colleague::colleague</a></div><div class="ttdeci">colleague(std::shared_ptr&lt; mediator_t &gt; m)</div><div class="ttdef"><b>定义</b> <a href="#l00079">state.hpp:79</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html">wheels::dm::state</a></div><div class="ttdef"><b>定义</b> <a href="#l00054">state.hpp:55</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a0968dd350bb56eb0c0afa316b79c5f57"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a0968dd350bb56eb0c0afa316b79c5f57">wheels::dm::state::setEnd</a></div><div class="ttdeci">void setEnd(const stateData_t &amp;data)</div><div class="ttdoc">指定结束状态。状态机完成后结束在这个节点</div><div class="ttdef"><b>定义</b> <a href="#l00158">state.hpp:158</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a0b96900875a4246a74c44982a759f976"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a0b96900875a4246a74c44982a759f976">wheels::dm::state::addState</a></div><div class="ttdeci">bool addState(const stateData_t &amp;state)</div><div class="ttdoc">删除状态。接下来的是添加和删除节点和状态连接的操作</div><div class="ttdef"><b>定义</b> <a href="#l00239">state.hpp:239</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a1a72269c51efa6f01abc634bc33490ab"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1a72269c51efa6f01abc634bc33490ab">wheels::dm::state::stateData_t</a></div><div class="ttdeci">typename std::remove_pointer&lt; typename std::decay&lt; STATE_TYPE &gt;::type &gt;::type stateData_t</div><div class="ttdoc">状态数据别名和简化处理</div><div class="ttdef"><b>定义</b> <a href="#l00061">state.hpp:61</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a1be75ee1830da5d8ab1edc88aaa63789"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a1be75ee1830da5d8ab1edc88aaa63789">wheels::dm::state::removeArc</a></div><div class="ttdeci">void removeArc(const stateData_t &amp;from, const stateData_t &amp;to)</div><div class="ttdoc">移除转换.</div><div class="ttdef"><b>定义</b> <a href="#l00294">state.hpp:294</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a21e9d3fc3ea7ceb446fe8ece5f80db69"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a21e9d3fc3ea7ceb446fe8ece5f80db69">wheels::dm::state::execute</a></div><div class="ttdeci">bool execute()</div><div class="ttdoc">执行一次无参数的转换。</div><div class="ttdef"><b>定义</b> <a href="#l00186">state.hpp:186</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a276e36399fcf163a00db2f881539383e"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a276e36399fcf163a00db2f881539383e">wheels::dm::state::m_arcs__</a></div><div class="ttdeci">arcData_t m_arcs__</div><div class="ttdef"><b>定义</b> <a href="#l00098">state.hpp:98</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a33524c586d0d10e756a5634c2487ce53"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a33524c586d0d10e756a5634c2487ce53">wheels::dm::state::m_stats__</a></div><div class="ttdeci">stateTbl_t m_stats__</div><div class="ttdef"><b>定义</b> <a href="#l00097">state.hpp:97</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a34ee5afb6adee119826bd693d01634b6"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a34ee5afb6adee119826bd693d01634b6">wheels::dm::state::removeState</a></div><div class="ttdeci">void removeState(const stateData_t &amp;state)</div><div class="ttdoc">添加状态</div><div class="ttdef"><b>定义</b> <a href="#l00249">state.hpp:249</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a47259a531c674b1a293567b628726aa9"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a47259a531c674b1a293567b628726aa9">wheels::dm::state::on</a></div><div class="ttdeci">void on(std::function&lt; void(stateData_t, private__::emEvent, CONDITION_DATA_TYPE) &gt; fun)</div><div class="ttdoc">登记状态转换动作函数。这个就是登记回调函数的操作</div><div class="ttdef"><b>定义</b> <a href="#l00141">state.hpp:141</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a487a1e3203122cdf758b5199fa9fb552"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a487a1e3203122cdf758b5199fa9fb552">wheels::dm::state::call_leave__</a></div><div class="ttdeci">void call_leave__(const stateData_t &amp;state, const CONDITION_DATA_TYPE &amp;data)</div><div class="ttdef"><b>定义</b> <a href="#l00112">state.hpp:112</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a4af1eb0f78d23a0c0523caaacf1a5ba9"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a4af1eb0f78d23a0c0523caaacf1a5ba9">wheels::dm::state::state</a></div><div class="ttdeci">state()</div><div class="ttdef"><b>定义</b> <a href="#l00120">state.hpp:120</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a6733c20fc3dbace80a38ae7700ed1292"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a6733c20fc3dbace80a38ae7700ed1292">wheels::dm::state::m_current__</a></div><div class="ttdeci">stateData_t m_current__</div><div class="ttdef"><b>定义</b> <a href="#l00100">state.hpp:100</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a70354db056a7e1efdeb8bc8190b99d21"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a70354db056a7e1efdeb8bc8190b99d21">wheels::dm::state::m_is_running__</a></div><div class="ttdeci">std::atomic&lt; bool &gt; m_is_running__</div><div class="ttdef"><b>定义</b> <a href="#l00103">state.hpp:103</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a720001d3fa7ae1037928418f53b87b4c"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a720001d3fa7ae1037928418f53b87b4c">wheels::dm::state::arcData_t</a></div><div class="ttdeci">std::map&lt; stateData_t, std::vector&lt; arc_t &gt; &gt; arcData_t</div><div class="ttdef"><b>定义</b> <a href="#l00067">state.hpp:67</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a810b97a9dbd577d1db53c927bc8618ad"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a810b97a9dbd577d1db53c927bc8618ad">wheels::dm::state::~state</a></div><div class="ttdeci">virtual ~state()</div><div class="ttdef"><b>定义</b> <a href="#l00131">state.hpp:131</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a8118e252c40019035f030044e03dc0cd"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a8118e252c40019035f030044e03dc0cd">wheels::dm::state::execute</a></div><div class="ttdeci">bool execute(const CONDITION_DATA_TYPE &amp;data)</div><div class="ttdoc">执行一次状态转换操作。这个函数是根据转换条件进行的转换操作</div><div class="ttdef"><b>定义</b> <a href="#l00208">state.hpp:208</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a82497bdd5e0c72b77f041f3790cf28fc"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a82497bdd5e0c72b77f041f3790cf28fc">wheels::dm::state::pt_consumer__</a></div><div class="ttdeci">std::shared_ptr&lt; colleague &gt; pt_consumer__</div><div class="ttdef"><b>定义</b> <a href="#l00109">state.hpp:109</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a95b728cea858087f800a2c288ec284df"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a95b728cea858087f800a2c288ec284df">wheels::dm::state::setStart</a></div><div class="ttdeci">void setStart(const stateData_t &amp;data)</div><div class="ttdoc">指定起始状态。状态机就绪后从指定的节点开始</div><div class="ttdef"><b>定义</b> <a href="#l00148">state.hpp:148</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_a9fe17224dd6f19b9bdeadcfc77036dd2"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#a9fe17224dd6f19b9bdeadcfc77036dd2">wheels::dm::state::pt_mdt__</a></div><div class="ttdeci">std::shared_ptr&lt; mediator_t &gt; pt_mdt__</div><div class="ttdef"><b>定义</b> <a href="#l00105">state.hpp:105</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_aaa126e8bdf31ad80efce8be6b37aefb8"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa126e8bdf31ad80efce8be6b37aefb8">wheels::dm::state::pt_producer__</a></div><div class="ttdeci">std::shared_ptr&lt; colleague &gt; pt_producer__</div><div class="ttdef"><b>定义</b> <a href="#l00108">state.hpp:108</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_aaa81c8c94b8adde0f60b8b0969ab2a2b"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#aaa81c8c94b8adde0f60b8b0969ab2a2b">wheels::dm::state::m_start__</a></div><div class="ttdeci">stateData_t m_start__</div><div class="ttdef"><b>定义</b> <a href="#l00101">state.hpp:101</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_ab189aeb6559842e7ba25e27b93bb05b8"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#ab189aeb6559842e7ba25e27b93bb05b8">wheels::dm::state::call_ent__</a></div><div class="ttdeci">void call_ent__(const stateData_t &amp;state, const CONDITION_DATA_TYPE &amp;data)</div><div class="ttdef"><b>定义</b> <a href="#l00116">state.hpp:116</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_ac75ba59a88b2f4ee8c9273f980ce152d"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#ac75ba59a88b2f4ee8c9273f980ce152d">wheels::dm::state::m_end__</a></div><div class="ttdeci">stateData_t m_end__</div><div class="ttdef"><b>定义</b> <a href="#l00102">state.hpp:102</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_ad2611d2f9d79b3f5d562cfd56b36ca47"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#ad2611d2f9d79b3f5d562cfd56b36ca47">wheels::dm::state::stateTbl_t</a></div><div class="ttdeci">std::map&lt; stateData_t, private__::stStat&lt; stateData_t &gt; &gt; stateTbl_t</div><div class="ttdef"><b>定义</b> <a href="#l00095">state.hpp:95</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_af53bb35c5631022dbf7c7b618b480d52"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#af53bb35c5631022dbf7c7b618b480d52">wheels::dm::state::addArc</a></div><div class="ttdeci">void addArc(const stateData_t &amp;from, const stateData_t &amp;to, std::function&lt; bool(const CONDITION_DATA_TYPE &amp;) &gt; cnd)</div><div class="ttdoc">添加转换。添加转换的时候增加转换条件</div><div class="ttdef"><b>定义</b> <a href="#l00275">state.hpp:275</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1state_html_af5e4ec9a4c82dc7637ca19c150107106"><div class="ttname"><a href="../../d2/d44/classwheels_1_1dm_1_1state.html#af5e4ec9a4c82dc7637ca19c150107106">wheels::dm::state::start</a></div><div class="ttdeci">void start(bool sw)</div><div class="ttdoc">启动。启动状态机</div><div class="ttdef"><b>定义</b> <a href="#l00168">state.hpp:168</a></div></div>
<div class="ttc" id="amediator_8hpp_html"><div class="ttname"><a href="../../db/d94/mediator_8hpp.html">mediator.hpp</a></div></div>
<div class="ttc" id="anamespaceprivate_____html"><div class="ttname"><a href="../../d4/da4/namespaceprivate____.html">private__</a></div><div class="ttdoc">代理模式</div><div class="ttdef"><b>定义</b> <a href="../../db/d94/mediator_8hpp_source.html#l00029">mediator.hpp:30</a></div></div>
<div class="ttc" id="anamespaceprivate_____html_a5a26ada0b747dbbd073197b507a605ca"><div class="ttname"><a href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605ca">private__::emEvent</a></div><div class="ttdeci">emEvent</div><div class="ttdef"><b>定义</b> <a href="#l00020">state.hpp:21</a></div></div>
<div class="ttc" id="anamespaceprivate_____html_a5a26ada0b747dbbd073197b507a605caa41dee3ee805865f3dd23fa8f91ac9b97"><div class="ttname"><a href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa41dee3ee805865f3dd23fa8f91ac9b97">private__::emEvent::EVT_READY</a></div><div class="ttdeci">@ EVT_READY</div></div>
<div class="ttc" id="anamespaceprivate_____html_a5a26ada0b747dbbd073197b507a605caa5edfd18e04add63c82efae8682c456a8"><div class="ttname"><a href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa5edfd18e04add63c82efae8682c456a8">private__::emEvent::EVT_END</a></div><div class="ttdeci">@ EVT_END</div></div>
<div class="ttc" id="anamespaceprivate_____html_a5a26ada0b747dbbd073197b507a605caa93f060bb1ace3f90ec826cd4b8b8728f"><div class="ttname"><a href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caa93f060bb1ace3f90ec826cd4b8b8728f">private__::emEvent::EVT_ENT</a></div><div class="ttdeci">@ EVT_ENT</div></div>
<div class="ttc" id="anamespaceprivate_____html_a5a26ada0b747dbbd073197b507a605caabe504d9acd8be4d4b4a3ebf094061feb"><div class="ttname"><a href="../../d4/da4/namespaceprivate____.html#a5a26ada0b747dbbd073197b507a605caabe504d9acd8be4d4b4a3ebf094061feb">private__::emEvent::EVT_LEAVE</a></div><div class="ttdeci">@ EVT_LEAVE</div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_arc_html"><div class="ttname"><a href="../../de/d17/structprivate_____1_1st_arc.html">private__::stArc</a></div><div class="ttdef"><b>定义</b> <a href="#l00037">state.hpp:38</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_arc_html_a8122100b8e97f59a6f24cb9aa9ae5a5f"><div class="ttname"><a href="../../de/d17/structprivate_____1_1st_arc.html#a8122100b8e97f59a6f24cb9aa9ae5a5f">private__::stArc::m_from</a></div><div class="ttdeci">STATE_TYPE m_from</div><div class="ttdef"><b>定义</b> <a href="#l00039">state.hpp:39</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_arc_html_aa49d75774f05060f9fc6a25e1b4d028c"><div class="ttname"><a href="../../de/d17/structprivate_____1_1st_arc.html#aa49d75774f05060f9fc6a25e1b4d028c">private__::stArc::stArc</a></div><div class="ttdeci">stArc(const STATE_TYPE &amp;from, const STATE_TYPE &amp;to, std::function&lt; bool(const CONDITON_DATA_TYPE &amp;) &gt; fun)</div><div class="ttdef"><b>定义</b> <a href="#l00044">state.hpp:44</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_arc_html_ab6799d748f4f334954cad2b8f7816daf"><div class="ttname"><a href="../../de/d17/structprivate_____1_1st_arc.html#ab6799d748f4f334954cad2b8f7816daf">private__::stArc::m_condition</a></div><div class="ttdeci">std::function&lt; bool(const CONDITON_DATA_TYPE &amp;) &gt; m_condition</div><div class="ttdef"><b>定义</b> <a href="#l00042">state.hpp:42</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_arc_html_abb716ee8d3f18200e1558ea6aee6689d"><div class="ttname"><a href="../../de/d17/structprivate_____1_1st_arc.html#abb716ee8d3f18200e1558ea6aee6689d">private__::stArc::m_to</a></div><div class="ttdeci">STATE_TYPE m_to</div><div class="ttdef"><b>定义</b> <a href="#l00040">state.hpp:40</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_stat_html"><div class="ttname"><a href="../../d4/dd7/structprivate_____1_1st_stat.html">private__::stStat</a></div><div class="ttdef"><b>定义</b> <a href="#l00030">state.hpp:31</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_stat_html_a5818372664f42dd7f5975763fdc516ed"><div class="ttname"><a href="../../d4/dd7/structprivate_____1_1st_stat.html#a5818372664f42dd7f5975763fdc516ed">private__::stStat::stStat</a></div><div class="ttdeci">stStat(const STATE_TYPE &amp;s)</div><div class="ttdef"><b>定义</b> <a href="#l00033">state.hpp:33</a></div></div>
<div class="ttc" id="astructprivate_____1_1st_stat_html_a6bdfa3272699b41d2620622784c4cf4e"><div class="ttname"><a href="../../d4/dd7/structprivate_____1_1st_stat.html#a6bdfa3272699b41d2620622784c4cf4e">private__::stStat::m_state</a></div><div class="ttdeci">STATE_TYPE m_state</div><div class="ttdef"><b>定义</b> <a href="#l00032">state.hpp:32</a></div></div>
<div class="ttc" id="astructwheels_1_1dm_1_1colleague_itfc_html"><div class="ttname"><a href="../../da/d74/structwheels_1_1dm_1_1colleague_itfc.html">wheels::dm::colleagueItfc</a></div><div class="ttdef"><b>定义</b> <a href="../../db/d94/mediator_8hpp_source.html#l00043">mediator.hpp:44</a></div></div>
<div class="ttc" id="astructwheels_1_1dm_1_1colleague_itfc_html_a8d96fd02ad0f7ecd434b310e344a17fb"><div class="ttname"><a href="../../da/d74/structwheels_1_1dm_1_1colleague_itfc.html#a8d96fd02ad0f7ecd434b310e344a17fb">wheels::dm::colleagueItfc&lt; mediator_t, stateData_t, private__::emEvent, CONDITION_DATA_TYPE &gt;::mediator_t</a></div><div class="ttdeci">typename std::remove_pointer&lt; typename std::decay&lt; mediator_t &gt;::type &gt;::type mediator_t</div><div class="ttdef"><b>定义</b> <a href="../../db/d94/mediator_8hpp_source.html#l00046">mediator.hpp:46</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
